package com.weilive.api.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.weilive.api.dao.model.AdvanceVideo;
import com.weilive.api.dao.model.BannerAds;
import com.weilive.api.dao.model.MainView;
import com.weilive.api.dao.model.PaymentType;
import com.weilive.api.dao.model.VjLevel;
import com.weilive.api.dao.model.VjSubType;
import com.weilive.api.dao.model.VjType;

public interface ResourceMapper {
	@Select("select * from c_advance_video")
	@ResultMap("com.weilive.api.dao.mapper.ResourceMapper.AdvanceVideoMap")
	List<AdvanceVideo> getAllAdvanceVideo();

	@Select("select * from c_banner_ads")
	@ResultMap("com.weilive.api.dao.mapper.ResourceMapper.BannerAdsMap")
	List<BannerAds> getAllBannerAds();

	// @Select("select * from c_discover")
	// @ResultMap("com.weilive.api.dao.mapper.ResourceMapper.DiscoverMap")
	// List<Discover> getAllDiscovers();

	@Select("select * from c_main_view")
	@ResultMap("com.weilive.api.dao.mapper.ResourceMapper.MainViewMap")
	List<MainView> getAllViews();

	@Select("select * from c_vj_type")
	@ResultMap("com.weilive.api.dao.mapper.ResourceMapper.VjTypeMap")
	List<VjType> getAllVjTypes();

	@Select("select * from c_vj_subtype")
	@ResultMap("com.weilive.api.dao.mapper.ResourceMapper.VjSubTypeMap")
	List<VjSubType> getAllVjSubTypes();

	@Select("select * from c_level")
	@ResultMap("com.weilive.api.dao.mapper.ResourceMapper.VjLevelMap")
	List<VjLevel> getAllVjLevels();
	
	@Select("select * from c_room_payment_type")
	@ResultMap("com.weilive.api.dao.mapper.ResourceMapper.PaymentTypeMap")
	List<PaymentType> getAllPaymentTypes();
}
